Optimal. Leaf size=113 \[ -\frac{b \cosh (c) \text{Chi}(d x)}{a^2}+\frac{b \cosh \left (c-\frac{a d}{b}\right ) \text{Chi}\left (x d+\frac{a d}{b}\right )}{a^2}-\frac{b \sinh (c) \text{Shi}(d x)}{a^2}+\frac{b \sinh \left (c-\frac{a d}{b}\right ) \text{Shi}\left (x d+\frac{a d}{b}\right )}{a^2}+\frac{d \sinh (c) \text{Chi}(d x)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{\cosh (c+d x)}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.368679, antiderivative size = 113, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294, Rules used = {6742, 3297, 3303, 3298, 3301} \[ -\frac{b \cosh (c) \text{Chi}(d x)}{a^2}+\frac{b \cosh \left (c-\frac{a d}{b}\right ) \text{Chi}\left (x d+\frac{a d}{b}\right )}{a^2}-\frac{b \sinh (c) \text{Shi}(d x)}{a^2}+\frac{b \sinh \left (c-\frac{a d}{b}\right ) \text{Shi}\left (x d+\frac{a d}{b}\right )}{a^2}+\frac{d \sinh (c) \text{Chi}(d x)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{\cosh (c+d x)}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 3297
Rule 3303
Rule 3298
Rule 3301
Rubi steps
\begin{align*} \int \frac{\cosh (c+d x)}{x^2 (a+b x)} \, dx &=\int \left (\frac{\cosh (c+d x)}{a x^2}-\frac{b \cosh (c+d x)}{a^2 x}+\frac{b^2 \cosh (c+d x)}{a^2 (a+b x)}\right ) \, dx\\ &=\frac{\int \frac{\cosh (c+d x)}{x^2} \, dx}{a}-\frac{b \int \frac{\cosh (c+d x)}{x} \, dx}{a^2}+\frac{b^2 \int \frac{\cosh (c+d x)}{a+b x} \, dx}{a^2}\\ &=-\frac{\cosh (c+d x)}{a x}+\frac{d \int \frac{\sinh (c+d x)}{x} \, dx}{a}-\frac{(b \cosh (c)) \int \frac{\cosh (d x)}{x} \, dx}{a^2}+\frac{\left (b^2 \cosh \left (c-\frac{a d}{b}\right )\right ) \int \frac{\cosh \left (\frac{a d}{b}+d x\right )}{a+b x} \, dx}{a^2}-\frac{(b \sinh (c)) \int \frac{\sinh (d x)}{x} \, dx}{a^2}+\frac{\left (b^2 \sinh \left (c-\frac{a d}{b}\right )\right ) \int \frac{\sinh \left (\frac{a d}{b}+d x\right )}{a+b x} \, dx}{a^2}\\ &=-\frac{\cosh (c+d x)}{a x}-\frac{b \cosh (c) \text{Chi}(d x)}{a^2}+\frac{b \cosh \left (c-\frac{a d}{b}\right ) \text{Chi}\left (\frac{a d}{b}+d x\right )}{a^2}-\frac{b \sinh (c) \text{Shi}(d x)}{a^2}+\frac{b \sinh \left (c-\frac{a d}{b}\right ) \text{Shi}\left (\frac{a d}{b}+d x\right )}{a^2}+\frac{(d \cosh (c)) \int \frac{\sinh (d x)}{x} \, dx}{a}+\frac{(d \sinh (c)) \int \frac{\cosh (d x)}{x} \, dx}{a}\\ &=-\frac{\cosh (c+d x)}{a x}-\frac{b \cosh (c) \text{Chi}(d x)}{a^2}+\frac{b \cosh \left (c-\frac{a d}{b}\right ) \text{Chi}\left (\frac{a d}{b}+d x\right )}{a^2}+\frac{d \text{Chi}(d x) \sinh (c)}{a}+\frac{d \cosh (c) \text{Shi}(d x)}{a}-\frac{b \sinh (c) \text{Shi}(d x)}{a^2}+\frac{b \sinh \left (c-\frac{a d}{b}\right ) \text{Shi}\left (\frac{a d}{b}+d x\right )}{a^2}\\ \end{align*}
Mathematica [A] time = 0.380891, size = 101, normalized size = 0.89 \[ \frac{b x \cosh \left (c-\frac{a d}{b}\right ) \text{Chi}\left (d \left (\frac{a}{b}+x\right )\right )+\text{Chi}(d x) (a d x \sinh (c)-b x \cosh (c))+b x \sinh \left (c-\frac{a d}{b}\right ) \text{Shi}\left (d \left (\frac{a}{b}+x\right )\right )+a d x \cosh (c) \text{Shi}(d x)-a \cosh (c+d x)-b x \sinh (c) \text{Shi}(d x)}{a^2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.048, size = 172, normalized size = 1.5 \begin{align*} -{\frac{{{\rm e}^{-dx-c}}}{2\,ax}}+{\frac{d{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2\,a}}+{\frac{b{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2\,{a}^{2}}}-{\frac{b}{2\,{a}^{2}}{{\rm e}^{{\frac{da-cb}{b}}}}{\it Ei} \left ( 1,dx+c+{\frac{da-cb}{b}} \right ) }+{\frac{b{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2\,{a}^{2}}}-{\frac{{{\rm e}^{dx+c}}}{2\,ax}}-{\frac{d{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2\,a}}-{\frac{b}{2\,{a}^{2}}{{\rm e}^{-{\frac{da-cb}{b}}}}{\it Ei} \left ( 1,-dx-c-{\frac{da-cb}{b}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45567, size = 259, normalized size = 2.29 \begin{align*} -\frac{1}{2} \, d{\left (\frac{{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} -{\rm Ei}\left (d x\right ) e^{c}}{a} + \frac{b^{2}{\left (\frac{e^{\left (-c + \frac{a d}{b}\right )} E_{1}\left (\frac{{\left (b x + a\right )} d}{b}\right )}{b} + \frac{e^{\left (c - \frac{a d}{b}\right )} E_{1}\left (-\frac{{\left (b x + a\right )} d}{b}\right )}{b}\right )}}{a^{2} d} + \frac{2 \, b \cosh \left (d x + c\right ) \log \left (b x + a\right )}{a^{2} d} - \frac{2 \, b \cosh \left (d x + c\right ) \log \left (x\right )}{a^{2} d} + \frac{{\left ({\rm Ei}\left (-d x\right ) e^{\left (-c\right )} +{\rm Ei}\left (d x\right ) e^{c}\right )} b}{a^{2} d}\right )} +{\left (\frac{b \log \left (b x + a\right )}{a^{2}} - \frac{b \log \left (x\right )}{a^{2}} - \frac{1}{a x}\right )} \cosh \left (d x + c\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.04736, size = 400, normalized size = 3.54 \begin{align*} -\frac{2 \, a \cosh \left (d x + c\right ) -{\left ({\left (a d - b\right )} x{\rm Ei}\left (d x\right ) -{\left (a d + b\right )} x{\rm Ei}\left (-d x\right )\right )} \cosh \left (c\right ) -{\left (b x{\rm Ei}\left (\frac{b d x + a d}{b}\right ) + b x{\rm Ei}\left (-\frac{b d x + a d}{b}\right )\right )} \cosh \left (-\frac{b c - a d}{b}\right ) -{\left ({\left (a d - b\right )} x{\rm Ei}\left (d x\right ) +{\left (a d + b\right )} x{\rm Ei}\left (-d x\right )\right )} \sinh \left (c\right ) +{\left (b x{\rm Ei}\left (\frac{b d x + a d}{b}\right ) - b x{\rm Ei}\left (-\frac{b d x + a d}{b}\right )\right )} \sinh \left (-\frac{b c - a d}{b}\right )}{2 \, a^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh{\left (c + d x \right )}}{x^{2} \left (a + b x\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17191, size = 174, normalized size = 1.54 \begin{align*} -\frac{a d x{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} - a d x{\rm Ei}\left (d x\right ) e^{c} + b x{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} - b x{\rm Ei}\left (\frac{b d x + a d}{b}\right ) e^{\left (c - \frac{a d}{b}\right )} + b x{\rm Ei}\left (d x\right ) e^{c} - b x{\rm Ei}\left (-\frac{b d x + a d}{b}\right ) e^{\left (-c + \frac{a d}{b}\right )} + a e^{\left (d x + c\right )} + a e^{\left (-d x - c\right )}}{2 \, a^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]